package com.eningqu.aipen.ui.dialog;

import android.annotation.SuppressLint;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;

import com.airbnb.lottie.LottieAnimationView;
import com.eningqu.aipen.demo.R;

public class LoadingAlertDialog extends Dialog {

    public LoadingAlertDialog(Context context) {
        this(context, true);
    }

    public LoadingAlertDialog(Context context, boolean canCancel) {
        super(context, R.style.LoadProgressDialog);
    }

    @SuppressLint("ResourceType")
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.dialog_loadding_alert);
        LottieAnimationView loadingImage = findViewById(R.id.loading_image);
        setCanceledOnTouchOutside(false);
    }
}